# -*- coding: utf-8 -*-
# Version:python3.7
from odoo import api, fields, models
class SysActionsReport(models.Model):
    _name = 'ir.actions.report'
    _inherit = 'ir.actions.report'
    @api.model
    def del_hr_badge(self):
       try:
           # hr_employee_print_badge
           report_obj = self.env['ir.actions.report'].sudo().search([('id', "=", self.env.ref('hr.hr_employee_print_badge').id)])

           if report_obj.id:
               print("------------------------------------{}".format(report_obj.id))
               report_obj.unlink()
       except Exception as e:
           pass

